import { createRouter, createWebHistory } from "vue-router";
import AppContainer from "../layout/index.vue";
import MainHome from "../views/MainHome.vue";

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      name: "home",
      path: "/",
      component: MainHome,
    },
    {
      name: "app1Home",
      path: "/app1/home",
      component: AppContainer,
    },
    {
      name: "app1about",
      path: "/app1/about",
      component: AppContainer,
    },
    {
      name: "app2Home",
      path: "/app2/home",
      component: AppContainer,
    },
    {
      name: "app2about",
      path: "/app2/about",
      component: AppContainer,
    },
    {
      name: "app3Home",
      path: "/app3/home",
      component: AppContainer,
    },
    {
      name: "app3about",
      path: "/app3/about",
      component: AppContainer,
    },
  ],
});

export default router;